package controllers

import (
	"github.com/astaxie/beego"
)

type Test struct {
	beego.Controller
}

func (t *Test) Get () {

	t.Redirect("www.bing.com" , 302)
	t.ServeJSON()
}
func (t *Test) Test() {
	//t.Ctx.Redirect(301, "https://www.baidu.com")
	//a:= t.Ctx.GetCookie("BD_HOME")
	//fmt.Println(a)

	t.Get()

}


